package coroutines.coroutine.globalscope

import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.lang.Exception

class GlobalScopeTest {
}

fun main() {
    GlobalScope.launch {
        println("GlobalCrop start")
        delay(1000)
        println("GlobalCrop end")
    }

    try {
        Thread.sleep(500)
    } catch (e: Exception) {
        e.printStackTrace()
    }

    println("Main thread completed")
}